home *** CD-ROM | disk | FTP | other *** search
- Path: engnews1.Eng.Sun.COM!taumet!clamage
- From: clamage@Eng.sun.com (Steve Clamage)
- Newsgroups: comp.std.c++
- Subject: Re: Problem with template overloading
- Date: 20 Feb 1996 21:13:12 GMT
- Organization: Sun Microsystems Inc.
- Approved: clamage@eng.sun.com (comp.std.c++)
- Message-ID: <4gdc6v$cqv@engnews1.Eng.Sun.COM>
- References: <4g7ndf$dhs@bcarh8ab.bnr.ca>
- Reply-To: clamage@Eng.sun.com
- NNTP-Posting-Host: taumet.eng.sun.com
- Content-Type: text
- X-Nntp-Posting-Host: taumet.eng.sun.com
- Content-Length: 544
- X-Lines: 16
- Originator: clamage@taumet
-
- In article dhs@bcarh8ab.bnr.ca, "brian (b.c.) white" <bcwhite@bnr.ca> writes:
- >>>Is it allowed to overload template names based on their parameters
- >>>in the same way that functions can be overloaded?
-
- >>No, that is not allowed. You cannot have more than one template
- >>with the same name in the same scope.
-
- >Is there a specific reason for this?
-
- Yes. Only in special cases would you not have insurmountable ambiguities.
- Just as type names must be unique in one scope, so must template names.
-
- ---
- Steve Clamage, stephen.clamage@eng.sun.com
-
-
-
- [ To submit articles: Try just posting with your newsreader.
- If that fails, use mailto:std-c++@ncar.ucar.edu
- FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
- Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-